package com.bll.impl.activityAction;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.ActivityBean;
import com.bll.Action;
import com.dao.ActivityDao;

public class ShowOneActivityAction implements Action{
	public String execute(HttpServletRequest request,HttpServletResponse response) {
		int id=Integer.parseInt(request.getParameter("activityId"));
		System.out.println("activityId:"+id);
		String lujing=request.getParameter("lujing");
		//System.out.println("id:"+id);
		//System.out.println("actlj:"+lujing);
		ActivityDao dao=new ActivityDao();
		ActivityBean bean=dao.SelectById(id);
		request.setAttribute("bean", bean);
		System.out.println("title------------"+bean.getTitle());
		
		return lujing+"?lujing="+request.getParameter("lujing1");
	}
}
